// sql_commands.h
//

#if !defined(SQL_COMMANDS_H)
#define SQL_COMMANDS_H

#include <string>
#include <vector>
#include <iosfwd>
class t_pg_cursor;

enum eSQL_CMDS{	eCREATE_OBSOLETE_ACC_TABLES,		  // 0
				eANALYSE_OBSOLETE_ACC,				  // 1
				eREMOVE_OBSOLETE_ACC,                 // 2
				eSQL_CMDS_LAST      			      // 3
				};


void PrepareSQLCommands(t_pg_cursor& pg_db, const std::string& db_origin);
bool DropIndices(t_pg_cursor& pg_db, const std::string& table,
						std::vector<std::string>& vec_indexdef, std::ostream& CLOG);
bool ExecutePandaSQL(t_pg_cursor& pg_db, eSQL_CMDS stage, std::ostream& VERBOSE, std::ostream& CLOG);
bool ExecuteSQL(t_pg_cursor& pg_db, std::string err_description,
						std::vector<std::string>& SQL_commands, std::ostream& CLOG);
void CompleteSQL(t_pg_cursor& pg_db, bool vacuum, std::ostream& CLOG);
#endif // SQL_COMMANDS_H

